import java.util.Arrays;

public class Main {
    public static void main(String[] args){
        int[] arr={1,2,3,4};
        for(int x:arr){
            System.out.println(x);
        }

        String ret= Arrays.toString(arr);
        System.out.println(ret);

        int[] arr2=null;

        int[] ret2=func1();
        System.out.println(Arrays.toString(ret2));
        System.out.println(Arrays.toString(Arrays.copyOf(arr,arr.length)));
        int[] cpy=Arrays.copyOfRange(arr,1,3);

        int[] dest=new int[arr.length];
        System.arraycopy(arr,0,dest,0,arr.length);

        int[] copy=arr.clone();

        Arrays.sort(arr);
        Arrays.binarySearch(arr,2);

        int[][] arr1={{1,2,3},{4,5,6}};
        int[][] arr4= new int[][]{{1,2,3},{4,5,6}};
        int[][] arr3= new int[2][3];

        int[][] arr5= new int[2][];
        arr5[0]=new int[3];
        arr5[1]=new int[5];
    }
    public static int[] func1(){
        int[] arr={1,2,3,4};
        return arr;
    }
}